import { TypeOrmModuleOptions } from "@nestjs/typeorm";
import { Permission } from "src/permission/entities/permission.entity";
import { Role } from "src/role/entities/role.entity";
import { User } from "src/user/entities/user.entity";

const mysqlConfig: TypeOrmModuleOptions = {
  type: 'mysql',
  host: 'localhost',
  port: 3306,
  username: 'root',
  password: 'lfx7788fanpan',
  database: 'base-web-server',
  entities: [User, Permission, Role],
  synchronize: false,
  connectorPackage: 'mysql2',
  logging: false,
}

export default mysqlConfig